#ifndef _Encrypter__H
#define _Encrypter__H

#include "common.h"

class Encrypter
{
  public:
    Encrypter(const char* keyName);
    ~Encrypter();

    //caller must delete returned buffer
   char* EncryptData(const char* inBuf, int inlen, int* encryptedLen);

  private:
    RSA* rsaPub;
    int modulusSize;
    unsigned char* workingBuffer;

};

#endif //_Encrypter__H
